<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
request.setCharacterEncoding("UTF-8");
String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="<%=basePath%>">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" type="text/css"	href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/icon.css">
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="<%=basePath %>admin/assets/css/backOffice/myeasyui_base.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/assets/css/backOffice/newsStyle.css">

<style type="text/css">

#tinybox{position:absolute; display:none; padding:10px; background:#ffffff url(image/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000;}
#tinymask{position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000000; z-index:1500;}
#tinycontent{background:#ffffff; font-size:1.1em;}


</style>
<body>
    <div class="topTitle">
    	标准管理
    </div>
    
    <!-- Begin 质量控制面板 -->
 	<div id="main_layout" class="easyui-layout">
	    <div data-options="region:'center',title:'标准管理'" style="padding:5px;background:#eee;">
	    	<table class="easyui-datagrid"  id="standard" 
				data-options="rownumbers:true,singleSelect:false,url:'admin/standard/standard_getStandardJson.action',method:'get',toolbar:'#btn_standard',checkOnSelect: true,pageSize: '20',pageList: [20, 30, 40, 50, 100],pagination:true,fit:true" >
			
			<thead>
				<tr>
					<th data-options="field:'ck',checkbox:true"></th>
					<th data-options="field:'standardId',width:100,hidden:true">编号</th>
					<th data-options="field:'standardName',fit:'true',align:'left'" formatter="pdfFileFormatter">标准名称</th>
					<th data-options="field:'uploader',fit:'true',align:'left'" formatter="showUploaderFormatter">上传者</th>
					<th data-options="field:'fieldName',width:70,align:'center'">领域</th>
					<th data-options="field:'typeName',width:70,align:'center'">类型</th>
					<th data-options="field:'statusName',width:70,align:'center'">审核状态</th>
					<th data-options="field:'displayStatus',width:70,align:'center'" formatter="displayStatusFormatter">显示状态</th>
					<th data-options="field:'lookPower',width:70,align:'center'" formatter="lookPowerFormatter">未登录可见</th>
					<th data-options="field:'addTime',width:150,align:'center'"formatter="dateHHmmssFormatter">创建时间</th>
				</tr>
			</thead>
		</table>
		
    </div>
</div>
	<!-- End 质量控制面板 -->
    
     <!-- Begin 菜单详情操作按钮 -->
    <div id="btn_standard" style="height:auto">
    	<div style="margin-bottom:5px">
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-page_white_acrobat',plain:true" onclick="addStandard()">单个上传</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-page_white_acrobat',plain:true" onclick="addStandardBatch()">批量上传</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="updateStandard()">报告修改</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-play_green',plain:true" onclick="auditPass()">审核通过</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-pause_green',plain:true" onclick="auditNoPass()">审核不通过</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-play_green',plain:true" onclick="show()">显示</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-pause_green',plain:true" onclick="hide()">不显示</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" onclick="noLoginShow()">未登录可见</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-delete3',plain:true" onclick="noLoginHide()">未登录隐藏</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="dataremove()">删除</a>
		</div>
		<div>
			<table style="font-size: 13">
				<tr>
					<td style="text-align: right;">
						类别： 
					</td>
					<td>
						<input id="search_type" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=standard_type&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
					<td class="align_right_100">
						领域： 
					</td>
					<td>
						<input id="search_field" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=standard_field&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
					<td class="align_right_100">
						上传者：
					</td>
					<td> 
						<input  class="easyui-textbox" type="text" id="search_uploader"  data-options="" style="width:150px"></input>
					</td>
					<td class="align_right_100"></td>
				</tr>
				<tr>
					<td style="text-align: right;">
						标准名： 
					</td>
					<td>
						<input  class="easyui-textbox" type="text" id="search_standardName"  data-options="" style="width:150px"></input>
					</td>
					<td class="align_right_100">
						审核状态： 
					</td>
					<td>
						<input id="search_statusName" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=audit_status&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
					<td class="align_right_100">
						显示状态：
					</td>
					<td>
						<select class="easyui-combobox"   id="search_displayStatus"  panelHeight="auto" style="width:150px" >
							<option value="">==请选择==</option>
							<option value="1">显示</option>
							<option value="0">隐藏</option>
						</select>
					</td>
					<td class="align_right_100">
						<a class="easyui-linkbutton" iconCls="icon-search" onclick="searchStandard()">查询</a>
					</td>
				</tr>
			</table>
			<br>
		</div>
	</div>
    <!-- End 菜单详情操作按钮 -->
    
    <!-- Begin 上传/修改报告 -->
	<div id="addAndUpdata_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
	    <form id="standard_form" method="post" enctype="multipart/form-data">
	    	
	    	<input type="hidden" id="form_standardId" name="standard.standardId" />
	    	<input type="hidden" id="form_status" name="standard.status" />
	    	<input type="hidden" id="form_displayStatus" name="standard.displayStatus" />
	    	<table style="width: 350px" align="center" style="font-size: 13">
	    		<tr>
	    			<td align="right">标 准 名：</td>
	    			<td>
	    				<input id="form_standardName" class="easyui-textbox"  type="text" name="standard.standardName" data-options="validType:'length[1,60]'" required="true"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">类&nbsp; &nbsp; &nbsp;别：</td>
	    			<td>
	    				<input id="form_type" name="standard.type" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=standard_type&comBoBox.isSelect=true',panelHeight:'auto'" />
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">领&nbsp; &nbsp; &nbsp;域：</td>
	    			<td>
	    				<input id="form_field" name="standard.field" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=standard_field&comBoBox.isSelect=true',panelHeight:'auto'" />
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">附&nbsp; &nbsp; &nbsp;件：</td>
	    			<td>
	    				<input type="file" name="annex" id="form_file"/>
	    			</td>
	    		</tr>
	    	</table>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addOrUpdata()">保存</a>
	    </div>
	    </form>
	</div>
	
	
	<!-- End 上传/修改报告 -->
	
	<!-- Begin 批量上传报告 -->
	<div id="addBatch_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
	    <form id="batch_form" method="post" enctype="multipart/form-data">
	    	
	    	<input type="hidden" id="batch_standardId" name="standard.standardId" />
	    	<input type="hidden" id="batch_status" name="standard.status" />
	    	<input type="hidden" id="batch_displayStatus" name="standard.displayStatus" />
	    	<table style="width: 350px" align="center" style="font-size: 13">
	    		<tr>
	    			<td align="right">类&nbsp; &nbsp; &nbsp;别：</td>
	    			<td>
	    				<input id="batch_type" name="standard.type" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=standard_type&comBoBox.isSelect=true',panelHeight:'auto'" />
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">领&nbsp; &nbsp; &nbsp;域：</td>
	    			<td>
	    				<input id="batch_field" name="standard.field" class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=standard_field&comBoBox.isSelect=true',panelHeight:'auto'" />
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">附&nbsp; &nbsp; &nbsp;件：</td>
	    			<td>
	    				<input type="file" name="annex" id="batch_file"/>
	    			</td>
	    		</tr>
	    	</table>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addBatch()">保存</a>
	    </div>
	    </form>
	</div>
	
	
	<!-- End 批量上传报告 -->
    
    <!-- Begin 上传人详情 -->
	<div id="uploader_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
	    	<table style="width: 350px" align="center">
	    		<tr>
	    			<td align="right">编&nbsp; &nbsp; &nbsp;号：</td>
	    			<td id = "accountId"  style="width: 230px"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">上 传 人：</td>
	    			<td id = "nickName"  style="width: 230px"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">联 系 人：</td>
	    			<td  id = "linkMan"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">电&nbsp; &nbsp; &nbsp;话：</td>
	    			<td  id = "phone"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">传&nbsp; &nbsp; &nbsp;真：</td>
	    			<td   id = "fax"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">邮&nbsp; &nbsp; &nbsp;箱：</td>
	    			<td   id = "email"></td>
	    		</tr>
	    	</table>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="dialog_close()">关闭</a>
	    </div>
	</div>
	<!-- End 上传人详情 -->
    
	<script type="text/javascript" src="<%=basePath %>admin/assets/js/BackOffice/mine-function.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/standard/js/js_standard.js"></script>
</body>
</html>
